package jgl.vajra.management.part.order.activity;

import jgl.vajra.management.R;
import jgl.vajra.management.databinding.ActivitySubmitSuccessBinding;
import jgl.vajra.management.manager.IntentManager;
import jgl.vajra.management.part.home.activity.HomeActivity;
import jgl.vajra.management.part.order.contract.SubmitSuccessContract;
import jgl.vajra.management.part.order.viewModel.SubmitSuccessViewModel;
import jgl.vajra.management.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.management.widget.mvvm.view.AppActivityManager;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMActivity;

@CreateViewModel(SubmitSuccessViewModel.class)
public class SubmitSuccessActivity extends BaseMVVMActivity<SubmitSuccessViewModel, ActivitySubmitSuccessBinding> implements SubmitSuccessContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_submit_success;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);
    }

    //继续添加
    @Override
    public void onContinueAdd() {
        IntentManager.toCarAddActivity(this);
        finish();
    }

    //返回首页
    @Override
    public void onDetermine() {
        AppActivityManager.getAppActivityManager().returnToActivity(HomeActivity.class);
        finish();
    }
}